<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<script type="text/javascript" src="lib/PIE_IE678.js"></script>
<![endif]-->
<link href="css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="lib/Hui-iconfont/1.0.7/iconfont.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="lib/daterangepicker/daterangepicker.css" /> 
<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>众筹</title>
</head>
<body>
<nav class="breadcrumb">
	<i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 众筹管理 <span class="c-gray en">&gt;</span> 众筹列表 <a class="btn btn-success radius r mr-20 reload" style="line-height:1.6em;margin-top:3px" href="javascript:;" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>
	<span class="r" style="margin-top: -2px; box-sizing: border-box;">
		<select name="state" class="select" style="width: auto; height: 31px; vertical-align: middle;">
			<option value="">=审核状态=</option>
			<option value="0">未审核</option>
			<option value="1">已审核</option>
		</select>
		
		<div style="display:inline-block; width:380px; position:relative;">
			日期范围：
			<input name="time" type="text" id="date-range1" class="input-text datainp" style="width:300px">
			<i class="Hui-iconfont i-close" id="inputclear">&#xe706;</i>
		</div>
		

		<span style="position:relative">
			<input type="text" name="k"  placeholder=" 内容名称" style="width:200px" class="input-text">
			<i class="Hui-iconfont i-close" id="inputclear">&#xe706;</i>
		</span>

		<button id="search" class="btn btn-success"><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
	</span>
</nav>

<div class="mt-5 pd-15">
	<table class="table table-border table-bordered table-bg table-hover table-sort" id="categorylist">
		<thead>
			<tr class="text-c sort0">
				<th class="valueid"><input name="" type="checkbox" value=""></th>
				<th width="60" class="fun-sort" data-name="zc_id" data-flag="0">ID</th>	
				<th>项目名称</th>
				<th>项目图片</th>
				<th width="50">发起人ID</th>
				<th width="60" class="fun-sort" data-name="zc_support_amount" data-flag="0">已筹金额</th>
				<th width="60" class="fun-sort" data-name="zc_focus_count" data-flag="0">关注</th>
				<th width="60" class="fun-sort" data-name="zc_sup_count" data-flag="0">支持</th>
				<th width="60" class="fun-sort" data-name="zc_price" data-flag="0">总价</th>
				<th width="60" class="fun-sort" data-name="zc_earnest" data-flag="0">定金</th>	
				<th class="fun-sort" data-name="zc_end_time" data-flag="0">结束时间</th>
				<th width="60" class="fun-sort" data-name="zc_sort" data-flag="0">排序</th>
				<th>是否成功</th>
				<th>状态</th>
				<th width="60">操作</th>
			</tr>
		</thead>
		<tbody id="content_sp">			
		</tbody>
	</table>


	<div class="cl pd-5 bg-1 bk-gray mt-20 mb-20"> 
		<a href="javascript:;" class="btn btn-danger l mr-10 mt-5 radius fun-all" data-type="del"><i class="Hui-iconfont">&#xe6e2;</i> 批量删除</a> 
		<a class="btn btn-primary radius mt-5" onclick="_open('添加','raise-add.html','90%','80%',false)" href="javascript:;"><i class="Hui-iconfont">&#xe600;</i> 添加</a>
		<span class="r pt-5"  style="line-height: 35px;" id="page"></span>
		<span class="r mr-10"  style="line-height: 40px;" id="dataall"></span> 
	</div>

</div>

<!-- 模版 -->
<script id="test" type="text/html">
<% for (x in list) { %>
	<tr class="text-c va-m sort1" >
		<td class="valueid"><input name="" type="checkbox" value="<%=list[x].zc_id%>"></td>
		<td><%=list[x].zc_id%></td>
		<td><%=list[x].zc_name%></td>
		<td class="text-l"><img class="pic-thumb" src="/Manage/images/blank.gif" data-lazy="<%=list[x].zc_image%>"></td>
		<td><%=list[x].member_id%></td>
		<td><%=list[x].zc_support_amount%></td>
		<td><%=list[x].zc_focus_count%></td>
		<td><%=list[x].zc_sup_count%></td>
		<td><%=list[x].zc_price%></td>
		<td><%=list[x].zc_earnest%></td>
		<td><%=list[x].zc_end_time%></td>
		<td><input type="text" size="3" class="paixu fun-paixu" name="zc_sort" value="<%=list[x].zc_sort%>" style="text-align: center;"></input></td>
		<td><%=list[x].zc_is_success%></td>
		<td class="td-status">	
			<input type="checkbox" class="switch fun-start-stop" style="outline: none;" <%if(list[x].zc_is_effect==1){ %>checked<% } %>/>
		</td>
		
		<td class="td-manage f-18">
			<a style="text-decoration:none" onClick="_open('众筹编辑','raise-add.html?editid=<%=list[x].zc_id%>','90%','90%',true)" class="ml-5 edit" href="javascript:;" title="众筹编辑"><i class="Hui-iconfont">&#xe6df;</i></a> 
			<a style="text-decoration:none" class="ml-5 fun-del" href="javascript:;" title="删除"><i class="Hui-iconfont">&#xe6e2;</i>
		</a>
		</td>
	</tr>
<% } %>
</script>
	
<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="js/H-ui.js"></script>
<script type="text/javascript" src="lib/layer/2.1/layer.js"></script> 
<script type="text/javascript" src="js/H-ui.admin.js"></script> 
<script src="/Public/js/template-native.js"></script> 
<script type="text/javascript" src="js/s.js"></script> 
<script type="text/javascript" src="lib/laypage/laypage.js"></script> 
<script type="text/javascript" src="lib/daterangepicker/moment.min.js"></script> 
<script type="text/javascript" src="lib/daterangepicker/jquery.daterangepicker.js"></script>
<script src="/Manage/js/lazyload.min.js"></script>
<script type="text/javascript">
var API=API_RAISE;
var kk=API;
var orderby='';
var search='';

loaddata(API,1,true);

$('#date-range1').dateRangePicker({
	startOfWeek: 'monday',
	separator : ' 至 ',
	format: 'YYYY-MM-DD HH:mm',
	autoClose: true,
	time: {
		enabled: true
	},
	defaultTime: moment().startOf('day').toDate(),
	defaultEndTime: moment().endOf('day').toDate()
});

$(document).on('click','#search',function(){
	kk=API+"?";
	var param=[
		'k='+encodeURI(document.querySelector('input[name=k]').value),
		'state='+document.querySelector('select[name=state]').value,
		'time='+document.querySelector('input[name=time]').value,
	];
	
	search=param.join('&');
	    kk=kk+search+'&'+orderby;
		loaddata(kk,1);
})

</script>

</body>
</html>